package com.mindmax.wordmemory.mapper;


import com.mindmax.wordmemory.domain.DataVocabularySource;

import java.util.List;

/**
 * 词汇Mapper接口
 * 
 * @author cabloy
 * @date 2024-04-16
 */
public interface DataVocabularySourceMapper 
{
    /**
     * 查询词汇
     * 
     * @param id 词汇主键
     * @return 词汇
     */
    public DataVocabularySource selectDataVocabularySourceById(Long id);

    /**
     * 查询词汇列表
     * 
     * @param dataVocabularySource 词汇
     * @return 词汇集合
     */
    public List<DataVocabularySource> selectDataVocabularySourceList(DataVocabularySource dataVocabularySource);

    /**
     * 新增词汇
     * 
     * @param dataVocabularySource 词汇
     * @return 结果
     */
    public int insertDataVocabularySource(DataVocabularySource dataVocabularySource);

    /**
     * 修改词汇
     * 
     * @param dataVocabularySource 词汇
     * @return 结果
     */
    public int updateDataVocabularySource(DataVocabularySource dataVocabularySource);

    /**
     * 删除词汇
     * 
     * @param id 词汇主键
     * @return 结果
     */
    public int deleteDataVocabularySourceById(Long id);

    /**
     * 批量删除词汇
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDataVocabularySourceByIds(Long[] ids);

    void deleteDataVocabularySourceByBankId(Long bankId);

}
